package com.fitns.user.dao.baseConfig;

import com.fitns.user.dto.baseConfig.FacilityDataCondition;
import com.fitns.user.dto.baseConfig.TbFacilityTypeDTO;
import com.fitns.user.dto.baseConfig.TbFacilityTypeVO;
import com.fitns.user.mapper.baseConfig.TbFacilityTypeMapper;
import com.fitns.user.model.baseConfig.TbFacilityType;

import java.util.List;

public interface TbFacilityTypeDao extends TbFacilityTypeMapper {

    void deleteByType(Long  id);

    List<TbFacilityType> search(FacilityDataCondition facilityDataCondition);
    /**
     * 查询数据类型，支持模糊查询类型字段
     *
     * */
    List<TbFacilityTypeVO> selectType(TbFacilityTypeDTO tbFacilityTypeDTO);

    /**
     * 删除数据类型，物理删除，根据id删除
     *
     * */
    int deleteFacilityTypeById(long id);

    TbFacilityType selectFacilityType(/*@Param("facilityType")*/String facilityType);
    /**
     *
     * 根据id查询该id所有信息
     *
     * */
    TbFacilityType selectTbFacilityById(long id);
}
